package com.jdz.service;

import com.jdz.common.ServerResponse;
import com.jdz.pojo.RaceType;
import com.jdz.vo.RaceTypeVo;

import java.util.Date;
import java.util.List;

/**
 * Created by sun
 **/
public interface IRaceTypeService {

    ServerResponse addRaceType(String racetype, int parentId,String startTime,String stopTime);

    ServerResponse updateRaceType(Integer racetypeno, String racetype);

    ServerResponse deleteRaceType(Integer racetypeno);

    ServerResponse<List<RaceTypeVo>> getParallelRaceType(Integer parentId);

    ServerResponse startDeclaring(List<Integer> racetypenoList);

    ServerResponse stopDeclaring(List<Integer> racetypenoList);

    ServerResponse setStartTime(List<Integer> racetypeno, String starttime);

    ServerResponse setStopTime(List<Integer> racetypeno,String stoptime);

    ServerResponse getAllParallelRaceType();

}
